Integrand size = 10, antiderivative size = 61 \[ \int \left (-1+\cot ^2(x)\right )^{3/2} \, dx=\frac {5}{2} \text {arctanh}\left (\frac {\cot (x)}{\sqrt {-1+\cot ^2(x)}}\right )-2 \sqrt {2} \text {arctanh}\left (\frac {\sqrt {2} \cot (x)}{\sqrt {-1+\cot ^2(x)}}\right )-\frac {1}{2} \cot (x) \sqrt {-1+\cot ^2(x)} \]
[Out]
Time = 0.06 (sec) , antiderivative size = 61, normalized size of antiderivative = 1.00, number of steps used = 7, number of rules used = 6, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.600, Rules used = {3742, 427, 537, 223, 212, 385} \[ \int \left (-1+\cot ^2(x)\right )^{3/2} \, dx=\frac {5}{2} \text {arctanh}\left (\frac {\cot (x)}{\sqrt {\cot ^2(x)-1}}\right )-2 \sqrt {2} \text {arctanh}\left (\frac {\sqrt {2} \cot (x)}{\sqrt {\cot ^2(x)-1}}\right )-\frac {1}{2} \cot (x) \sqrt {\cot ^2(x)-1} \]
[In]
[Out]
Rule 212
Rule 223
Rule 385
Rule 427
Rule 537
Rule 3742
Rubi steps \begin{align*} \text {integral}& = -\text {Subst}\left (\int \frac {\left (-1+x^2\right )^{3/2}}{1+x^2} \, dx,x,\cot (x)\right ) \\ & = -\frac {1}{2} \cot (x) \sqrt {-1+\cot ^2(x)}-\frac {1}{2} \text {Subst}\left (\int \frac {3-5 x^2}{\sqrt {-1+x^2} \left (1+x^2\right )} \, dx,x,\cot (x)\right ) \\ & = -\frac {1}{2} \cot (x) \sqrt {-1+\cot ^2(x)}+\frac {5}{2} \text {Subst}\left (\int \frac {1}{\sqrt {-1+x^2}} \, dx,x,\cot (x)\right )-4 \text {Subst}\left (\int \frac {1}{\sqrt {-1+x^2} \left (1+x^2\right )} \, dx,x,\cot (x)\right ) \\ & = -\frac {1}{2} \cot (x) \sqrt {-1+\cot ^2(x)}+\frac {5}{2} \text {Subst}\left (\int \frac {1}{1-x^2} \, dx,x,\frac {\cot (x)}{\sqrt {-1+\cot ^2(x)}}\right )-4 \text {Subst}\left (\int \frac {1}{1-2 x^2} \, dx,x,\frac {\cot (x)}{\sqrt {-1+\cot ^2(x)}}\right ) \\ & = \frac {5}{2} \text {arctanh}\left (\frac {\cot (x)}{\sqrt {-1+\cot ^2(x)}}\right )-2 \sqrt {2} \text {arctanh}\left (\frac {\sqrt {2} \cot (x)}{\sqrt {-1+\cot ^2(x)}}\right )-\frac {1}{2} \cot (x) \sqrt {-1+\cot ^2(x)} \\ \end{align*}
Time = 0.26 (sec) , antiderivative size = 121, normalized size of antiderivative = 1.98 \[ \int \left (-1+\cot ^2(x)\right )^{3/2} \, dx=\frac {1}{2} \left (-1+\cot ^2(x)\right )^{3/2} \sec ^2(2 x) \left (\arctan \left (\frac {\cos (x)}{\sqrt {-\cos (2 x)}}\right ) \sqrt {-\cos (2 x)} \sin ^3(x)+4 \text {arctanh}\left (\frac {\cos (x)}{\sqrt {\cos (2 x)}}\right ) \sqrt {\cos (2 x)} \sin ^3(x)-4 \sqrt {2} \sqrt {\cos (2 x)} \log \left (\sqrt {2} \cos (x)+\sqrt {\cos (2 x)}\right ) \sin ^3(x)-\frac {1}{4} \sin (4 x)\right ) \]
[In]
[Out]
Time = 0.04 (sec) , antiderivative size = 48, normalized size of antiderivative = 0.79
method | result | size |
derivativedivides | \(\frac {5 \ln \left (\cot \left (x \right )+\sqrt {-1+\cot \left (x \right )^{2}}\right )}{2}-\frac {\cot \left (x \right ) \sqrt {-1+\cot \left (x \right )^{2}}}{2}-2 \,\operatorname {arctanh}\left (\frac {\cot \left (x \right ) \sqrt {2}}{\sqrt {-1+\cot \left (x \right )^{2}}}\right ) \sqrt {2}\) | \(48\) |
default | \(\frac {5 \ln \left (\cot \left (x \right )+\sqrt {-1+\cot \left (x \right )^{2}}\right )}{2}-\frac {\cot \left (x \right ) \sqrt {-1+\cot \left (x \right )^{2}}}{2}-2 \,\operatorname {arctanh}\left (\frac {\cot \left (x \right ) \sqrt {2}}{\sqrt {-1+\cot \left (x \right )^{2}}}\right ) \sqrt {2}\) | \(48\) |
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 170 vs. \(2 (47) = 94\).
Time = 0.28 (sec) , antiderivative size = 170, normalized size of antiderivative = 2.79 \[ \int \left (-1+\cot ^2(x)\right )^{3/2} \, dx=\frac {4 \, \sqrt {2} \log \left (2 \, \sqrt {-\frac {\cos \left (2 \, x\right )}{\cos \left (2 \, x\right ) - 1}} \sin \left (2 \, x\right ) - 2 \, \cos \left (2 \, x\right ) - 1\right ) \sin \left (2 \, x\right ) - 2 \, \sqrt {2} \sqrt {-\frac {\cos \left (2 \, x\right )}{\cos \left (2 \, x\right ) - 1}} {\left (\cos \left (2 \, x\right ) + 1\right )} + 5 \, \log \left (\frac {\sqrt {2} \sqrt {-\frac {\cos \left (2 \, x\right )}{\cos \left (2 \, x\right ) - 1}} \sin \left (2 \, x\right ) + \cos \left (2 \, x\right ) + 1}{\cos \left (2 \, x\right ) + 1}\right ) \sin \left (2 \, x\right ) - 5 \, \log \left (\frac {\sqrt {2} \sqrt {-\frac {\cos \left (2 \, x\right )}{\cos \left (2 \, x\right ) - 1}} \sin \left (2 \, x\right ) - \cos \left (2 \, x\right ) - 1}{\cos \left (2 \, x\right ) + 1}\right ) \sin \left (2 \, x\right )}{4 \, \sin \left (2 \, x\right )} \]
[In]
[Out]
\[ \int \left (-1+\cot ^2(x)\right )^{3/2} \, dx=\int \left (\cot ^{2}{\left (x \right )} - 1\right )^{\frac {3}{2}}\, dx \]
[In]
[Out]
\[ \int \left (-1+\cot ^2(x)\right )^{3/2} \, dx=\int { {\left (\cot \left (x\right )^{2} - 1\right )}^{\frac {3}{2}} \,d x } \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 179 vs. \(2 (47) = 94\).
Time = 0.52 (sec) , antiderivative size = 179, normalized size of antiderivative = 2.93 \[ \int \left (-1+\cot ^2(x)\right )^{3/2} \, dx=\frac {1}{4} \, {\left (4 \, \sqrt {2} \log \left ({\left (\sqrt {2} \cos \left (x\right ) - \sqrt {2 \, \cos \left (x\right )^{2} - 1}\right )}^{2}\right ) - \frac {4 \, \sqrt {2} {\left (3 \, {\left (\sqrt {2} \cos \left (x\right ) - \sqrt {2 \, \cos \left (x\right )^{2} - 1}\right )}^{2} - 1\right )}}{{\left (\sqrt {2} \cos \left (x\right ) - \sqrt {2 \, \cos \left (x\right )^{2} - 1}\right )}^{4} - 6 \, {\left (\sqrt {2} \cos \left (x\right ) - \sqrt {2 \, \cos \left (x\right )^{2} - 1}\right )}^{2} + 1} + 5 \, \log \left (\frac {{\left | 2 \, {\left (\sqrt {2} \cos \left (x\right ) - \sqrt {2 \, \cos \left (x\right )^{2} - 1}\right )}^{2} - 4 \, \sqrt {2} - 6 \right |}}{{\left | 2 \, {\left (\sqrt {2} \cos \left (x\right ) - \sqrt {2 \, \cos \left (x\right )^{2} - 1}\right )}^{2} + 4 \, \sqrt {2} - 6 \right |}}\right )\right )} \mathrm {sgn}\left (\sin \left (x\right )\right ) \]
[In]
[Out]
Timed out. \[ \int \left (-1+\cot ^2(x)\right )^{3/2} \, dx=\int {\left ({\mathrm {cot}\left (x\right )}^2-1\right )}^{3/2} \,d x \]
[In]
[Out]